<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title><?php if(isset($SEO['title']) && !empty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>
<meta name="keywords" content="<?php echo $SEO['keyword'];?>">
<meta name="description" content="<?php echo $SEO['description'];?>">
<link href="<?php echo HOME_PATH;?>css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_PATH;?>css/media.css" rel="stylesheet" type="text/css">
<link href="<?php echo HOME_PATH;?>css/reset.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo HOME_PATH;?>css/font-awesome.min.css">
<link rel="stylesheet" href="<?php echo HOME_PATH;?>css/animate.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo HOME_PATH;?>css/idangerous.swiper.css">
<script type="text/javascript" src="<?php echo HOME_PATH;?>js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="<?php echo HOME_PATH;?>js/idangerous.swiper.min.js"></script>
<script type="text/javascript" src="<?php echo HOME_PATH;?>js/swiper.animate1.0.2.min.js"></script>
<script type="text/javascript" src="<?php echo HOME_PATH;?>js/jquery.superslide.2.1.2.js"></script>
<script type="text/javascript" src="<?php echo HOME_PATH;?>js/wow.min.js"></script>
<script type="text/javascript">
  $(function(){
     new WOW().init();
     $(".imgbox").hover(function(){
        $(this).find("img").eq(0).addClass("scale-1x");
    },function(){
        $(this).find("img").eq(0).removeClass("scale-1x");
    })});
</script>
</head>
<body>
<div class="smallest-screen"></div>
<div class="webmain">
  <?php include template("content","header"); ?>
  <?php include template("content","top"); ?>
  <section class="met_section"> <?php include template("content","left"); ?>
    <article>
      <div class="met_article">
        <section class="met_article_head">
          <h1><?php echo $CATEGORYS[$catid]['catname'];?></h1>
        </section>
        <div class="met_clear"></div>
        <div class="active" id="imglist">
          <ul class="lists_1">
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=11e982198282a77f17ebf8d7a1dede5e&action=lists&catid=%24catid&num=10&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 10;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
            <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
            <li class="my-simple-gallery">
              <figure> <a href="<?php echo $r['url'];?>"> <img class="tupian" loadwidth="320" loadheight="220" src="<?php echo thumb($r[thumb],300,300);?>" alt="<?php echo $r['title'];?>">
                <h2><?php echo str_cut($r[title],28);?></h2>
                </a>
                <figcaption><?php echo str_cut($r[title],28);?></figcaption>
              </figure>
            </li>
            <?php $n++;}unset($n); ?>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
          </ul>
          <div class="met_clear"></div>
          <div class="met_pager"> <?php echo $pages;?> </div>
        </div>
        <div class="met_clear"></div>
      </div>
    </article>
    <div class="met_clear"></div>
  </section>
  <?php include template("content","footer"); ?> </div>
</body>
</html>